﻿<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeBehind="IndexDemo.aspx.cs"
    Inherits="Portal.IndexDemo" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<title></title>
<link href="/CSS/style.css" rel="stylesheet" rev="stylesheet" />
<link href="/CSS/global.css" rel="stylesheet" rev="stylesheet" />
<script src="/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
<script src="/Scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script type="text/javascript">
    function ConvertTaskTab(tabIndex, ElementID0, ElementID1, classID0, classID1) {

        switch (tabIndex) {
            case 0:
                document.getElementById(ElementID0).style.display = 'none';
                document.getElementById(classID0).className = '';
                document.getElementById(ElementID1).style.display = 'block';
                document.getElementById(classID1).className = 'currently';
                break;
            case 1:
                document.getElementById(ElementID0).style.display = 'block';
                document.getElementById(classID0).className = 'currently';
                document.getElementById(ElementID1).style.display = 'none';
                document.getElementById(classID1).className = '';
                break;
        }
    }
    function locationUrl(url) {
        if (url != null || url != "") {
            window.parent.frames["frmContentInfo"].location.href = url;
        }
    }
</script>
</head>
<body>
    <div id="right">
        <div class="listTable_1">
            <div class="tableTab">
                <ul>
                    <li id="waitTaskLi" class="currently" onclick="ConvertTaskTab(0,'completeTaskDiv','waitTaskDiv','completeTaskLi','waitTaskLi')">
                        待办任务(0)</li>
                    <li id="completeTaskLi" onclick="ConvertTaskTab(1,'completeTaskDiv','waitTaskDiv','completeTaskLi','waitTaskLi')">
                        已办任务(0)</li>
                </ul>
                <span class="more"><a href="#" onclick="locationUrl('../Task/MyTask.aspx')">更多>></a></span>
            </div>
            <div id="waitTaskDiv">
                <table id="waitTaskTab" border="0" cellpadding="0" cellspacing="0" class="listTable3">
                    <tr class="listTablebg">
                        <th style="width: 40%;">
                            流程标题
                        </th>
                        <th>
                            发送人
                        </th>
                        <th>
                            发送部门
                        </th>
                        <th>
                            到达时间
                        </th>
                        <th>
                            截止时间
                        </th>
                        <th>
                            所属流程
                        </th>
                    </tr>
                    <asp:Repeater ID="rptWellTask" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <%#Eval("PROCESSNAME")%>
                                </td>
                                <td>
                                    <%#Eval("TASKUSER")%>
                                </td>
                                <td>
                                </td>
                                <td>
                                    <%#Eval("STARTTIME")%>
                                </td>
                                <td>
                                    <%#Eval("ENDTIME")%>
                                </td>
                                <td>
                                    <%#Eval("PROCESSNAME") %>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
            </div>
            <div id="completeTaskDiv" style="display: none;">
                <table id="completeTaskTab" border="0" cellpadding="0" cellspacing="0" class="listTable3">
                    <tr>
                        <th style="width: 40%;">
                            流程标题
                        </th>
                        <th>
                            发送人
                        </th>
                        <th>
                            发送部门
                        </th>
                        <th>
                            到达时间
                        </th>
                        <th>
                            截止时间
                        </th>
                        <th>
                            所属流程
                        </th>
                    </tr>
                    <asp:Repeater ID="rptTask" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <%#Eval("PROCESSNAME")%>
                                </td>
                                <td>
                                    <%#Eval("TASKUSER")%>
                                </td>
                                <td>
                                </td>
                                <td>
                                    <%#Eval("STARTTIME")%>
                                </td>
                                <td>
                                    <%#Eval("ENDTIME")%>
                                </td>
                                <td>
                                    <%#Eval("PROCESSNAME") %>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
            </div>
        </div>
        <div class="listTable_1">
            <div class="tableTab">
                <ul>
                    <li id="toReadLi" class="currently" onclick="ConvertTaskTab(0,'haveReadDiv','toReadDiv','haveReadLi','toReadLi')">
                        待阅任务(0)</li>
                    <li id="haveReadLi" onclick="ConvertTaskTab(1,'haveReadDiv','toReadDiv','haveReadLi','toReadLi')">
                        已阅任务(0)</li>
                </ul>
                <span class="more"><a href="#" onclick="locationUrl('../Task/MyRead.aspx')">更多>></a></span>
            </div>
            <div id="toReadDiv">
                <table id="toReadTab" border="0" cellpadding="0" cellspacing="0" class="listTable3">
                    <tr>
                        <th style="width: 40%;">
                            流程标题
                        </th>
                        <th>
                            发送人
                        </th>
                        <th>
                            发送部门
                        </th>
                        <th>
                            到达时间
                        </th>
                        <th>
                            流程环节
                        </th>
                        <th>
                            所属流程
                        </th>
                    </tr>
                    <asp:Repeater ID="rptWellReadTask" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <%#Eval("TASK_TITLE")%>
                                </td>
                                <td>
                                    <%#Eval("TASK_USER")%>
                                </td>
                                <td>
                                </td>
                                <td>
                                    <%#Eval("START_TIME")%>
                                </td>
                                <td>
                                    <%#Eval("STEP_LABEL")%>
                                </td>
                                <td>
                                    <%#Eval("PROCESSNAME") %>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
            </div>
            <div id="haveReadDiv" style="display: none;">
                <table id="haveReadTab" border="0" cellpadding="0" cellspacing="0" class="listTable3">
                    <tr>
                        <th style="width: 40%;">
                            流程标题
                        </th>
                        <th>
                            发送人
                        </th>
                        <th>
                            发送部门
                        </th>
                        <th>
                            到达时间
                        </th>
                        <th>
                            流程环节
                        </th>
                        <th>
                            所属流程
                        </th>
                    </tr>
                    <asp:Repeater ID="rptReadedTask" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <%#Eval("TASK_TITLE")%>
                                </td>
                                <td>
                                    <%#Eval("TASK_USER")%>
                                </td>
                                <td>
                                </td>
                                <td>
                                    <%#Eval("START_TIME")%>
                                </td>
                                <td>
                                    <%#Eval("STEP_LABEL")%>
                                </td>
                                <td>
                                    <%#Eval("PROCESSNAME") %>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
            </div>
        </div>
    </div>
</body>
</html>
